package ModelLayer;

import ModelLayer.Customer;
import ModelLayer.Invoice;

public class SalesOrder
{
	private int orderId;
	private String orderDate;
	private String deliveryDate;
	private String deliveryStatus;
	private Invoice invoice;
	private Customer customer;
	
	//empty constructor
	public SalesOrder()
	{}
	
	public SalesOrder(int id)
	{
		this.orderId = id;
	}
	
	public SalesOrder(int orderId, String orderDate, String deliveryDate,
			String deliveryStatus)
	{
		this.orderId = orderId;
		this.orderDate = orderDate;
		this.deliveryDate = deliveryDate;
		this.deliveryStatus = deliveryStatus;
		this.customer = new Customer();
		this.invoice = new Invoice();
	}
	
	public int getId()
	{
		return orderId;
	}
	public void setId(int orderId)
	{
		this.orderId = orderId;
	}
	
	public String getOrderDate()
	{
		return orderDate;
	}
	public void setOrderDate(String orderDate)
	{
		this.orderDate = orderDate;
	}
	
	public String getDeliveryDate()
	{
		return deliveryDate;
	}
	public void setDeliveryDate(String deliveryDate)
	{
		this.deliveryDate = deliveryDate;
	}
	
	public String getDeliveryStatus()
	{
		return deliveryStatus;
	}
	public void setDeliveryStatus(String deliveryStatus)
	{
		this.deliveryStatus = deliveryStatus;
	}
	
	public Customer getCustomer()
	{
		return customer;
	}
	public void setCustomer(Customer customer)
	{
		this.customer = customer;
	}
	
	public Invoice getInvoice()
	{
		return invoice;
	}
	public void setInvoice(Invoice invoice)
	{
		this.invoice = invoice;
	}
}